﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="staff_assess.aspx.cs" Inherits="Xnjc_staff_assess" %>

 <%@ Import Namespace="System.Data" %>
<%

    if ("charts".Equals(displayType))
    {
		
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh">
<head  runat="server">
    <title>图表分析</title>

    <script>
        var resourceUri = "../images/resource/";
    </script>

    <script type="text/javascript" src="../ScriptFile/common.js"></script>

    <script type="text/javascript" src="../ScriptFile/java_class.js"></script>

    <script type="text/javascript" src="../ScriptFile/qx.js"></script>

    <script type="text/javascript" src="../ScriptFile/qxdutil.js"></script>


</head>

    <script>
	//你的程序要形成虚线之间这些内容，后面的程序会画出图表
	//---------------------------------------------------------
	var flashPath = "../penalty/";//flash所在的路径
	var secondsPerDay = <%=secondsPerDay%>;
	var chartSettings = 	[{
			data : null,
			config : {
				caption : "案件数目",
				subCaption : "",
				yaxisname : "案件数（件）",
				xaxisname : "时间段"
			}
		},{
			data : null,
			config : {
				caption : "平均执行时间",
				subCaption : "",
				yaxisname : "平均用时(天)",
				xaxisname : "时间段"
			}
		}
		
		];
	
	chartSettings[0].data = [
	<%
		for (int i = 0; i < list.Rows.Count; i++){
			DataRow m = (DataRow) list.Rows[i];
			System.String value_Renamed =m["CNT"].ToString();
			if (i != 0)
				Response.Write(",");
			
		%>
			{name : "<%=m["YEAR"]%>年<%
			if (m["MONTH"] != null)
			{
			%><%=m["MONTH"]%>月<%
				if (m["DAY"] != null)
				{
				%><%=m["DAY"]%>日<%
				}
			}
		%>",value : <%=value_Renamed%>}
		<%
		}
	%>
	];
	chartSettings[1].data = [
	<%
		for (int i = 0; i < list.Rows.Count; i++){
			DataRow m = (DataRow) list.Rows[i];
			System.String value_Renamed = m["TOTAL_TIME"].ToString();
			if (i != 0)
				Response.Write(",");
			System.String cnt =  m["CNT"].ToString();
			
		%>
			{name : "<%=m["YEAR"].ToString()%>年<%
			if (m["MONTH"] != null)
			{
			%><%=m["MONTH"].ToString()%>月<%
				if (m["DAY"] != null)
				{
				%><%=m["DAY"].ToString()%>日<%
				}
			}
		%>",value : <%=value_Renamed%>*1.0/secondsPerDay/<%=cnt%>}
		<%
		}
	%>
	];
	//------------------------------------------------
	
	
    </script>
<body>

    <script>
        document.write("<script type=\"text/javascript\" src=\"../scriptfile/chart.js?" + (new Date()).getTime() + "\"></" + "script>");
    </script>

</body>
</html>
<%
    return;
    }
	
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>个人工作情况</title>

    <script language="Javascript">
        function setUser(userID, userName) {
            document.getElementById("userID").value = userID;
            document.getElementById("userName").value = userName;
        }
        function mouseMove(trname) {
            return;
            var hidden3 = document.getElementById("hidden3");
            hidden3.value = trname.style.backgroundColor;
            trname.style.backgroundColor = '#caf7fd';
        }
        function mouseOut(trname) {
            return;
            var hidden3 = document.getElementById("hidden3");
            trname.style.backgroundColor = hidden3.value;
        }
    </script>

    <link href="../css/page.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <!--所有或在某个时间段内，某人在某个流程的岗位上的执行情况。-->
    <table width="100%" cellspacing="0" cellpadding="0" align="center" border="0" class="tab">
        <tr>
            <th>
                时间
            </th>
            <th>
                数目
            </th>
            <th>
                平均用时
            </th>
            <th>
                详细
            </th>
        </tr>
        <%=strhtml  %>
    </table>
</body>
</html>

